package com.caishi.lkx.user.userlog.model;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 日志记录基础
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RecordsIpImage implements Serializable {

    @Id
    private String id;

    @Indexed
    private List<String> recordIds;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;


    @Indexed
    private String ip;

    private Object image;

    /**
     * 记录类型
     */

    private UserLogType logType;

}
